<?php

declare (strict_types = 1);

namespace app\adminapi\validate;

use think\Validate;

class ConfigGroupValidate extends Validate
{
    protected $rule = [
        'name'  => 'require|max:32',
        'mark'  => 'require|max:32',
    ];

    protected $message = [
        'name.require' => '配置分组名称不能为空',
        'name.max' => '配置分组名称不能超过32个字符',
        'mark.require' => '配置分组标识不能为空',
        'mark.max' => '配置分组标识不能超过32个字符'
    ];

}